﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Data;

namespace ServiceContract
{
    internal class DataAccessCenterBase : ClientBase<IDataAccessCenter>, IDataAccessCenter
    {
        internal DataAccessCenterBase()
            : base()
        {
            try
            {
                this.Open();
            }
            catch
            {
                throw;
            }
        }

        #region IDataAccessCenter 成员

        public byte[] FindEntity(ParamesEntity data, string expression)
        {
            return this.Channel.FindEntity(data, expression);
        }

        public byte[] FindData(ParamesEntity data)
        {
            return this.Channel.FindData(data);
        }


        public bool ModifyData(ParamesEntity data)
        {
            return this.Channel.ModifyData(data);
        }

        public object GetObject(ParamesEntity data)
        {
            return this.Channel.GetObject(data);
        }

        public DataTable GetTable(ParamesEntity data)
        {
            return this.Channel.GetTable(data);
        }
        #endregion
    }
}
